# 定义装饰器
def logger(func):
    def inner(*args, **kwargs):
        func(*args, **kwargs)

    return inner


# 装饰函数
@logger
def sum_num(*args, **kwargs):
    print(args, kwargs)


sum_num(1, 2, name='Amy', age=18)
